org.eclipse.vtp.framework.interactions.core.support
Class WidgetDocument

java.lang.Object
  extended by org.eclipse.vtp.framework.interactions.core.support.Widget
      extended by org.eclipse.vtp.framework.interactions.core.support.WidgetDocument
All Implemented Interfaces:
IDocument
Direct Known Subclasses:
VXMLDocument

public abstract class WidgetDocument
extends Widget
implements IDocument

Base document type for component-style structures.

Version:
2.0
Author:
Trip Gilman, Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.framework.interactions.core.platforms.IDocument
DEFAULT_CONTENT_TYPE
 
Constructor Summary
protected WidgetDocument()
          Creates a new WidgetDocument object.
 
Method Summary
 java.lang.String getContentType()
          Returns a string representing the MIME type of XML document this instance produces.
 javax.xml.transform.Source toXMLSource()
          Creates and returns an XML representation of this document.
 
Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget, writeWidget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.vtp.framework.interactions.core.platforms.IDocument
getDocumentType
 

Constructor Detail

WidgetDocument

protected WidgetDocument()
Creates a new WidgetDocument object.

Method Detail

getContentType

public java.lang.String getContentType()
Description copied from interface: IDocument
Returns a string representing the MIME type of XML document this instance produces.

Specified by:
getContentType in interface IDocument
Returns:
A string representing the MIME type of XML document this instance produces.

toXMLSource

public javax.xml.transform.Source toXMLSource()
                                       throws java.lang.IllegalStateException
Description copied from interface: IDocument
Creates and returns an XML representation of this document.

Specified by:
toXMLSource in interface IDocument
Returns:
An XML transformation source object that can be used with the javax.xml.transform API.
Throws:
java.lang.IllegalStateException - If any aspect of this document's state prevents it from being transformed into XML.